home *** CD-ROM | disk | FTP | other *** search
/ PC User 2002 April / Disc 2 / PCUSER0402D2.iso / software / utils / files / wincron.exe / data1.cab / Sample_Scripts / Include / stdio.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-20  |  2.1 KB  |  80 lines

  1.  
  2. #ifndef STDIOH_
  3. #define STDIOH_
  4.  
  5. #pragma  push_safeptr
  6.  
  7. #include <stdarg.h>   /* this must get fixed */
  8.  
  9. #define _need_NULL
  10. #define _need_size_t
  11.  
  12. #include "sys/stdtypes.h"
  13.  
  14. #undef _need_size_t
  15. #undef _need_NULL
  16.  
  17. #include <sys/stdio.h>
  18.  
  19. int fsetpos (FILE *stream, const fpos_t *pos);
  20. int fgetpos (FILE *stream, fpos_t *pos);
  21. int feof (FILE *stream);
  22. int ferror (FILE *stream);
  23. int puts (const char *s);
  24. void rewind (FILE *stream);
  25.  
  26. #define vprintf(x,y)  vfprintf(stdout,x,y)
  27.  
  28. #define setbuf(x,y) do { char *b = (y); \
  29.     setvbuf(x, b, b ? _IOFBF : _IONBF, BUFSIZ); } while (0)
  30.  
  31. #define getchar()     fgetc(stdin)
  32. #define getc(x)       fgetc(x)
  33. #define putchar(x)    fputc(x,stdout)
  34. #define putc(x,y)     fputc(x,y)
  35.  
  36. /** Prototypes */
  37. int sprintf(char *buf, const char * fmt, ...);
  38. int printf(const char *fmt, ...);
  39. int fprintf(FILE * fp,const char *fmt, ...);
  40.  
  41. int vfprintf(FILE * fp,const char *fmt, va_list args);
  42. int vsprintf(char * str,const char *fmt, va_list args);
  43.  
  44. /** PROTOTYPES from fopen.c **/
  45. long ftell(FILE *fp);
  46. int ungetc(int c, FILE *fp);
  47. char * gets(char *s);
  48. int fgetc(FILE * fp);
  49. int fputc(int c, FILE * fp);
  50. int fputs(const char *s, FILE *fp);
  51. char * fgets(char *s, int n, FILE *fp);
  52. size_t fread(void *buf, size_t elsize, size_t nelems, FILE * fp);
  53. size_t fwrite(const void *buf, size_t elsize, size_t nelems, FILE * fp);
  54. FILE *freopen(const char *name, const char *mode, FILE *fp);
  55. FILE *fopen(const char *name, const char *mode);
  56. int fflush(FILE * fp);
  57. int fclose(FILE * fp);
  58. int fscanf(FILE *fp, const char *fmt, ...);
  59. int scanf(const char *fmt, ...);
  60. int sscanf(const char *str,const char *fmt, ...);
  61. int setvbuf(FILE *fp, char *buf, int mode, size_t size);
  62. char * tmpnam(char*s);
  63. FILE * tmpfile(void);
  64. int remove(const char *fname);
  65. int rename(const char *oldname, const char *newname);
  66. int fseek(FILE *fp, long off, int origin);
  67.  
  68. void clearerr(FILE *fp);
  69. void perror(const char *msg);
  70.  
  71. /* UNIX system stuff */
  72. FILE *popen( const char *cmd, const char *mode);
  73. int pclose( FILE *fp);
  74.  
  75. #pragma pop_ptr
  76.  
  77. #endif
  78.  
  79.  
  80.